home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / source / alloc_re.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-15  |  214 b   |  18 lines

  1. #include "alloc.h"
  2. #include "byte.h"
  3.  
  4. int alloc_re(x,m,n)
  5. char **x;
  6. unsigned int m;
  7. unsigned int n;
  8. {
  9.   char *y;
  10.  
  11.   y = alloc(n);
  12.   if (!y) return 0;
  13.   byte_copy(y,m,*x);
  14.   alloc_free(*x);
  15.   *x = y;
  16.   return 1;
  17. }
  18.